import requests

try:
    # 发送 GET 请求  1
    response = requests.get('https://gitee.com/cheqinzho/cmd/raw/master/cmd.json')
    # 检查响应状态码
    response.raise_for_status()
    # 解析 JSON 数据
    data = response.json()

    print(data)
    print(data['cpoknotme'])
    print(data['cp'])
except requests.exceptions.HTTPError as http_err:
    print(f'HTTP 错误发生: {http_err}')
except requests.exceptions.RequestException as req_err:
    print(f'请求错误发生: {req_err}')
except ValueError as json_err:
    print(f'JSON 解析错误发生: {json_err}')
